﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Class1
    {
        static void Main(string[] args)
        {
            int num2;
        Console.WriteLine("请用户输入一个四位整数:");
        string num = Console.ReadLine();
            num2 = Convert.ToInt32(num);
            Console.WriteLine("千位是："+(num2 /1000));
            Console.WriteLine("百位是："+(num2 / 100%10));
            Console.WriteLine("十位是:"+ (num2 / 10%10));
            Console.WriteLine("个位是："+ (num2 % 10));

        }
    }
}
